package priv.yiyuan.example.design.visitor;

/**
 * 销售数据
 * <p>
 * 报表数据具体实现
 *
 * @author YiYuan
 * @data 2025/8/4
 * @apoNote
 */
public class SalesData implements ReportDataElement {

    private double amount;

    private String product;

    public SalesData(double amount, String product) {
        this.amount = amount;
        this.product = product;
    }

    public double getAmount() {
        return amount;
    }

    public String getProduct() {
        return product;
    }

    @Override
    public void accept(ReportVisitor visitor) {
        visitor.visit(this);
    }
}
